package main

import "fmt"

type student struct {
	name string
	age  int
	//uname string
} //方法
func (s student) say() { //s是student类型
	fmt.Println("I am ", s.name)
}
func run(s student) { //s是student类型
	fmt.Println("I am ", s.name, " ,I can run", s.name, s.age)
}
func main() {
	s := student{"Tom", 18}
	s.say() //调用方法
	run(s)  //调用函数
	//字符串拼接变量
	//var a string
	//a = "hello"
	//fmt.Println(a+" world"+a)

}
